package rule02;

/**
 * @author ChangLiang
 * @date 2020/3/16
 */
public class PersonV1 {

    /**
     * 必填
     */
    private String firstName;

    /**
     * 必填
     */
    private String lastName;

    /**
     * 选填
     */
    private String city;

    /**
     * 选填
     */
    private String address;

    /**
     * 选填
     */
    private boolean isMale;

    public PersonV1(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }

    public PersonV1(String firstName, String lastName, String city) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.city = city;
    }

    public PersonV1(String firstName, String lastName, String city, String address) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.city = city;
        this.address = address;
    }

    public PersonV1(String firstName, String lastName, String city, String address, boolean isMale) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.city = city;
        this.address = address;
        this.isMale = isMale;
    }
}
